created allocateappointment behaviour