using gist replace code