reseting the array now works