improve lockid in table