code commented in exception handling..