got rid of unnecessary assignment