added comments to patterns