giant map test with little optimalization