fixed incorrect variable names
updated module to run