genLJpot: rewritter