doc in ta.r