changes for editgcode issue