mod problem. Kinda tricky. Probably an easier way to do this.