implemented update for positions