code simplification
Merge branch 'master' into beta