only accpet correct values