updated error estimation