you can use the same pattern above using `getOrElseUpdate` here