fixing syntax error in provider