sum from file