improved ex_7