removing anything not needed