removing unneeded attriblte