remove use of traits