ansuya's code