added land/water recognition