changed mask_file input