remove duplicate checkin function