added a way to ignore blank tags