made clock values to be stored in ptr
for referential passing