refactor,added file read from assets