updated shankar code
kl