filter the attributes