better to pass this into the constructor.