changed gs_wouter function