functions wacky

fixed