delete part of the code, and left the most important part