kmax = 11!!!