changes to get initial vertex