improved compound hint test (sorted list comparison)
refactoring and handling the case where no selection has been made
move the selection list init inside the loop
no message