minor change in setAvailability