detect selection if it contains last measure