i have changed the gyro from upside down to right sideup then it started to just spin around
sounds like you need to re-flip the gyro. There is one gyro that needs to be mounted upside down if it is not correcting in the right direction. Let us know what brand gyro you have so we know for sure.
Ok so you need to go through the menu on the gyro and change the direction led Norm/Rev from red to green or green to red