simple syntactic check