sample file read method modify at train