refine lptm.h and lptm.c