corrected variable names for executeCommand()