made pos variable of vertex public