removed unused variable num_occupants