got rid of some end tags