move check to AbstractVertex