why is this check necessary?