used filename instead of output filename