remove self references