modify config method