real time occupancy optimization