change setInterval function