revised variable dec

changed variable declarations to follow best practices