removed unnecessary initialised variables