working on checkin functionality