remove log from constructor.