add support for interval