add singleton patterns
Merge remote-tracking branch 'origin/master'