Extrude is snapping to the z axis automatically and only goes in one direction. please help

i was following this tutorial https://www.youtube.com/watch?v=-0tMeMZpeXE&ab_channel=GrantAbbitt and trying to make a barrel but the rims of the barrel are not going the way i want it to.(upload://f3c5EwxSoxBZigyXRPjlwBd3FKy.jpeg)

Check the snapping settings at the top of the viewport and also the object origin settings