added functions and some variables to wacky