last phase reduce complexity fix #70