problem2 run for different parameters