[Feature] - getData now return function