corrected variable names in parse pattern