added code for dynamic notes, but doesn't compile