mixins can’t exicute in functions, so just changing it to a function.