add code from ggs