Update margin gate