Two types of outputting results