added hint function