moved some code and added explosion