moved value initialisation into constructor.