switched run to loop
Updated comments