new AHD variant implementation - alpha version