replaced all the datt stuff with CheckIn stuff