remove what isn't needed