output flag added
updates