plane detection working