seal traits and remove attribute code