removes assignment bug