minor edits on value setting