y function. In ad