eraseDot function changed completly way better