updating ml and random search