hopefully again working for boxlen /= 1???