converting to a mixin