updated code for inclusion in tealium