remove dead assignments