trying to fix Woopra code