set position also in memory