example code I found, just saving it before I reinstall windows on my laptop