simulation and web finding algorithm