added uniqwords function