finished the functional bit <srikanth>