incoporating servo code