more syntax checking