new version of adjust_generators.py
K alg and amalg