alg1 possibly fixed