improving 1_3 solution