Inclusion Criteria:  hepatic patients with child-Pugh classification (class A), and (class B) American Society of Anesthesiologists physical status II, III aged 18 to 60 years scheduled for elective Upper gastro-intestinal endoscopy.  Exclusion Criteria:  emergency gastro-intestinal endoscopy. patients with severe hepatic disorder (Child C) , chronic neuro-psychiatric disorder, history of neuro-psychiatric drug intake, severe cardiovascular diseases, pregnancy, history of drug abuse, and history of allergy to any of the used drugs in the study