initialise variable properly