refactored find_key, take ham dist fo as many blocks as i can