updated ref-count further work and rendered the notes