outer loop parallel is faster than inner