updated the code to conform to the latest starred words schema