update stdout method