more function wacky with else block at the end