renamed texts accessor, moving sample functions