oops with the variable reassignment