most of the emphasis code