proof read done till description of algorithm