accepts file name inputs