removed the validation function