that would look like 1 loop with 3 if inside