read position from elements for saving