data update in 'dev' function finally works