remove extraneous attributes