checkErr in out