remove unneeded attributes