removed unnecessary if function_exists check