code from varuna 2006