change newResult back to two dimensions