why is next not unshifted to front of array?
commiting fix to next up