personal function 18 - end forEach loop