Add method visibility

add method visibility.