output text mode working