association generation code added