move dependency to constructor