add hint functionality