changed getUsersAtHap and checkIn functions