syntax error in models