fix bug dot removing element during loop, rebalanced around that