not iterating through getavailibality properly