and passing variables between functions