checking that we return a valid syntax; fixed naming