remove legacy attrs