now using multiprocessing.Value for shared memory of position