cleanup and unbalancedReshape updated to allow numeric id positions