handling case where there is no html wrapper