functions wacky

debugging