function change config array

Note Fucntion change not work full now