removed extraneous iteration
resetting to head