use set_layer_attr