code simplification
Merge branch 'master' into nook