use input file instead of variable