don't include current subfunction in comparison