needed to be able to change max-depth