snake method