testing setInterval function