adding on error