removed helper code