generate intervals explicitly when intervals is not defined