fixed step counter and connected vertex mark problems