cleaned up the code and made the explosion more effective