working on activevenues code