implement hash.pop