remove type attribute