fix a likely bug
better name output files