removes some misc stuff