same on scala ;)