updated for an (semi-edge) case.