added some crazy ninja code to ease the positioning of the gears :P