change convert to single thread