cleaning some redundant code in logm