16 Jan .. changed location of nd *temp initialization