use scala to do it