extracted gate from checkpoint