added and comment to setInterval function