correction for record extraction