changed setInterval