added check for released slots during preparation