tweaking invalid markup to be more realistic