updating for code standards: var should be at top and should use coma instead of multiple var