delete unnecesary objects