removing errors from model