added file input read in function