added double check for handoff for number of records