some optimization
Merge branch 'master' into staging