okay, I am implementing another function csrtodok. It's needed