using variables, preventing errors with arrays