will check getLastData function