patterns for bs3