sending hashref to the stash correctly