change all the fucking "var" statements back to proper variable types