finally i fixed adding word logic