added code at the top of the script to match pc and lc files