working on LSH