introduced threshold for error visualization