arrays loops, formatting