introduced bug when I separated out the html