replaced which with hash