finish hasmany and belongs to association