fixed reassignment thing