dynamic alloc
still a pb with neighbours in flattened version..