add note and update index