replacing code with gist