use constructor as mixin