restrict call to public methods