sample ctx value