proper unset unnecessary attribute