apply attr