changed unhash individually to one call to unhash all