multi-dimansional to multiple