removed the sample availablity code