changed logic from user appoint to survey