added noteDiv() function to avoid replicated code