added latest_notes function in trigger_helper