updated and added hint functionality