check for err return status
fixed typos