improved logic for note --KW