added -ref to hash