remove assignment to dead var