removed get_ctx