just a bunch of code I have written over time