defines association key method in header