more work on reading file