update constructor according to the algorithm...