added support for time segment