added Krishna's function