added run with interval method