some of my old code when I was experimenting