add pause and interval