optimization for previous check-in