add plane detection

add plane detection