implement getVertex