Can't figure out why rejection functions are getting called