fixed eshift[0] in calc_rds
added duration checking to verg