updated a method in interval