removes some needless parts