Not saving w with the index