set initial value from document