fixed typos so queries give intended result