change settings from array to object