Brother just take the old headlight and locate the motor on the back, now you will see a flat head screw on the back of the motor. Start turning it anti-clockwise, you will need to turn it a lot since you need to remove the motor. After few turns you will notice slight resistance, now simply hold the motor and twist it anti-clockwise if its a right side headlight or twist it clockwise if its a left side headlight. The motor should turn and come loose from the housing. Now simply continue to turn the screw on the motor in the anti-clockwise direction till it comes out completely. Make sure you also take out the rubber O-ring which acts as a gasket between the motor and the housing to make it water tight. Now you can easily reverse this process on the new headlight.
.