can't define function separately in conditional statements