more updates and fixed updatePositions()