added pacdots
changed dots logic