modified from dxy

Signed-off-by: Aladdin <Aladdin@Aladdins-rMBP.local>