remove warnings about using hash#index