new 'grid' structure + data cleanup
store grid frequency