updated variables to match array, not working