fixed bug with numRecs