modify codes by hand