fixes bug which names files the suffix--not the prefix--of the input file