refactor setMixins