check source tag instead of attribute