Changed variable location to reference the correct one; remove the method calls to split the array.