added accuracy computation, reduced runtime