global vars somewhat working :3