Edited some algs