adjusted code to force lowercase while parsing