define max levels