unrolled loops manually