extracted portion of appointment method to clean up code