fixed the add words method so now it works