error management improvement