removes a bunch of unused stuff