improve

improve the code