leaf and petal for AMD remapping