change attributes to traits