correcting err