made some things global vars because I'm going to split up into functions