update function
Merge branch 'master' into imag