remove intermediate assignments