update examples pro
repeat max < 0 for infinity loop