updating error jhandling