edit todo
refactoring: make transReadFromS