functions wacky

building correct code to place in sequence