removing self references