wip: converting to N-D