code snips from past work