adding rownumbers to identify individuals