Solution to AH problem