removed unused helper code