now can read input file
fixed calling bug