works incorrectly for #aa