added a do loop instead of hardcoding names