corrected output to console