bind the method and setinterval work