reshuffle elements, fixes #1