removed LEAF from unit local functions