added a loops this second counter

added a loops this second counter
Pointer fixes