control servo using array