generate alias to trait and save alias