check availability query added n tested

check availability query added n tested