added deletion of objects.