why do we need this check here?