alg3

small fixes