Splined Crank Removal and Replacement
This type of crank attachment is found on many high-performance mountain bikes. Instead of a square hole that fits over the tapered spindle, the crank has slots around a round opening. The slots fit onto teeth that stick out from a hollow round spindle in the bottom bracket. This setup is easier to remove than the tapered spindle type, requiring only a hex wrench. (You don't need a special crank-pulling tool. If the crank won't come off after removing the cap bolt, you may have a tapered splined spindle, which DOES require a crank-pulling tool.) Other crank types: standard female-threaded tapered spindle, male-threaded spindle with nut, tapered splined spindle.
If you removed the crank to replace chainrings , do that now.
If you're replacing the crankset, you're now ready to thread the pedal into the crankarm.