convert sc to .scala