param: rename lp function and variable from "writelist" to "write_list"