updated the logic for check_ins with some model methods