fixing rule for output files