modify err return issue