replaced gates