fixing syntax error for last warning