remove unset objects
remove unneeded objects