tags were appearing in an incorrect order, and wouldnt budge, refactored