Moving association func on the outside of through