save value for output