initialize return variable
move variable declaration before function code