remove unwanted attribute