modified the way the position picker is working