getwords should be fixed