works for hash now