limit maximum motor value