adjusting motor inversion