added SP getAvailability
added isAvailable
sp work