changed error to abs_diff