function to insert sudo