use permutation parser to write validations