make unit testable