How 2 remove speedo gear

All I did was get the back of my car higher then the front so the tail shaft of the tranny was higher than the front, removed the speed-o cable, took the bolt out holding the gear in, and it came right out with a little wiggling.