fixes setInterval call

need to pass in the delay in milliseconds