Update codes indent and function