adding a source to snippet functions