deal with null file values