changed query to actually query for wordlength