updated to take words