ex3_1 code beauty upgrade