added maxmix and unit tests