Opt: better formation of basis(pts) output