made modular

ignore duplicate keys