removing things that are not needed