Title: A nonlinear theory of water waves for finite and infinite depths