optimizing space management