passing file  name variable