fix linker error by change to mixin