switching to file input