add variable declaration as a best practice