simplify mips to two cases