found bug in setInterval function...

if else