added GS functionality