added functions to mixins