remove attributes not needed