added param for interval