added name to each loop output