basic function of grandword is done.