delete unneeded objects. example application of my diploma