resultValue initialised as null