pass file number as arg