change the logic for the run