use the full list of positions, not just the last one