fix the rule of output