code to remove aliases