modified to test Tag