remove unnecessary attribute