finished adding sudo code.