predefined functions