added code for servos