add gear constraint