implementation of delete objects