fixed uppdateAppointments(), filtering, not done