update reference
use json dictionary