implementation of GDA----first version