added mixin functions