adding go helper function