update the new lpr_v0.cpp