revised bold function