availability table now working