add reference between task and record