preparing map to be a table