updated task for generating relationships