showing notes only if they are defined