please add curly braces for the two liner in the for loop here