move declaration of variables to top of method