change slug to code for AA