updated algorithms section