minor changed to output