adding method config