added gist implementation