defined some mixins