small change
checkAvailability added