scala works like a fucking charm