After local ethics committee approval and written parental consent , @ ASA class I - II patients aged between @-@ years old scheduled for elective inguinal hernia repair were allocated randomly into two groups after general anesthesia with same drugs in both groups .