removed brackets in algs