getting rid of unnecessary variable attribution