added declaration in update vertex