fixed aCurry using black magic code