doc for pattern core