changed shape of arrays