i only did these six steps.....
1.) Put your device in fastboot mode (power off, then press the power and volume down buttons simultaneously).
2.)Open Command Prompt on androidsdk/platform-tools/ (Hold Shift and right click and press open command window here)
Connect your Phone to PC
3.)Type this in the CMD prompt window - fastboot oem get_unlock_data
You will get a return string. Copy it. [Right Click-Mark- Mark the text by pressing the shift key-Now press Ctrl+C]
Paste all the lines together in a notepad. Remove the empty spaces.
4.)Now go to the Motorola Site.Sign in using your Google account or Motorola ID. Scroll down the page and paste the copied string in the field at step #6. Then click on ‘Can my device be unlocked?’, after which a "REQUEST UNLOCK KEY" button will appear at the bottom of page. To get your unlock key, select the ‘I Agree’ option. Note: You will receive an email with your Unlock Key at the email address you used to log in there. Important – Copy the 20-character key that Motorola sent you via email. Make sure your device is connected.
5.)Then in CMD type: fastboot devices (To check your device is connected)
6.)Then type: fastboot oem unlock UNIQUE_KEY
......do i have to do something more...like sumthing i saw on video on twrp flash