update context_layer