improve the _get_data method bu using loadtxt numpy function