tested gde + fixed some erorrs.