properly initialises array of zeros now