add setTimeout call to updatePositions