able to do available rooms with DRY code