removed use of uninitialised value error.