added small fix for interval