comparing lock methods