program to compute the filling fractions