added function to wacky

added function to wacky