better data structure for level storage