html formating and assertion fix