remove unused assignments