update positions