changed hash, made for arrays