added more to algo