gets rid of unnecessary garbage