got helper code working