conditional statement for tags