updating gsdfmain.m