simplify the 4 for loops in updateRecord()
ignore some metrics