added tail evaluation