update position continuously