code simplification
Merge branch 'master' into tags-master