revised validations
implemented default comparator