gone through algorithm...