view_capability to capability