modified how dots are being added