changing to hash from hashref; returning null for string return, per code review