adding error/null example