replace Long by Integer for record number