changed to assert avail as 0 then return 0 as it should always be 0