words variable changed from string to list