removing some attributes before print