improve reading  and feature extraction method