remove extraneous attributes attribute