thank you all for replying
thank you johnwasser, you are a life saver .. code working without any errors thanks to you
johnwasser:
The only error I got when I merged the two and compiled for Arduino UNO was the place where "Motor_A_Enable" was mistyped as "Motor_A_Enablae".