extend func.
clean up code.
clean up code.
export extractValue