removed a superfluous if statement from hash_diff