asg2 output working