improve quasiquote function for pair