code hs improment