almost there, one bug remains - unlimited dimension