now using pregenerated map