added first_or_create check to tags