changing the scale of sprite changes its position center?,changing scale of 2d sprite

hello, i have an issue where i have the same explosion sprite for 2 objects of different scale and different sprite sizes, so i need to make the explosion to change scale after an event (basically make it bigger because the exploding object is bigger).

i have noticed that when the event happens, the script changes the scale of the object and the object plays the explosion animation the 0,0 coordinates for the object are switched to the top left corner from the center. why is that happening? ,

nvm, i have noticed that the problem was not in the scaling but in the sprites of the explosion, the pivot was top left instead of center.