updated code with better barrel bombing code