1. Delete unnecessary variables
2. Clean up the code