changing tag compare to to equals