use instance_exec for block