functions wacky

upload first code attempt