improved removing of objects