adding public method