fixed checkavailabilty, was getting concurrent modification