added s_error; removed time from d_error eqn