add correct compare functions for be nodes