error statment was incorrect: provider and function name mixed up