start to implement random search