remove use of trait