replaced validation functions