Getting "Loops must use braces" try adding { and } around ..