fixed using of trait