double entity check for planes