handle errors
use minimal width for tags