added global setInterval function