remove redunant self assignment