End-tidal partial pressure of carbon dioxide ( PETCO2 ) before and after operation as well as restlessness score ( RS ) , Ramsay sedative score , and visual analogue pain scale ( VAS ) scores at 10 minutes after extubation were recorded .