formatting and trying to get varubles to match

decalring golbas but yeah some frunctions dont wark