set all dependencies in the constructor