check tree mehods params type