note i think GDM.r is wrong in the last few versions