reduce unnecessary assignment 

reduce unnecessary assignment