change the tag when there are several conditions in a method