corrected setInterval initiation