eliminate unnecessary assignment