added getCurrentDatum() function