get rid of max option in es-source