use FileInputStream to initialize data