set occupied and unoccupied