removing extraneous data