param: rename lp function and variable from "printcommand" to "print_command"