adjust for Scala: relation option