replace hard coding with gist