removing graphics that aren't needed