multi loop, curry function, readability.