remove unused properties, store the info on the node