refactor names of snippet validation functions