another try to enhance hint logic