add BT pattern to optimizer