change the loop to an cfoutput