changed deprecated method call_user_method_array for call_user_func_array