now sets the value if one passed in