remove ports attributes and  scope directly