pass file name
modify print condition