added plotting, global variable zeta