added for loop instead of <br> tags