Added nice gates for connected nodes