using function to get the right Data-Directory