please add the same in the Scala version as well