took out setInterval method