change ts to rs to avoid shadowing ts from arrow