plays the role of
process
for this traversal
createrecord(l,ptr);