added msg to output