make sure return object is hash