changed visibility to public for setMethos