adjust x. FIXME:NEED TO KEEP DW AND DH