funny ndarray function to assign value to all indices is not required or rather an orverkill