incorporate an excellent suggestion from @benbalter