problem function read from data file