optimize the config define