kaa pattern