mixed-stage unrolling of loops working