extracted methods to make code testable