use end_of_association_chain instead of resource