for scala experiment