finished find-end function (for now)