remove redundant selfs