added compare of 2 tags, fixed logical errors
hmm working