added accuracy check