extract tag functions