modify D for 64 bit architecture