make TotalSR parameterized datatype