removes unecessary assignment