added method for bad markup